//
//  HLWebManager.h
//  zhuanxian
//
//  Created by zhaoliang chen on 2017/11/17.
//  Copyright © 2017年 huiling. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HLWaybillFiltrateObject.h"
#import "BANetManager.h"
#import "HLWaybillDetailObject.h"

@interface HLWebManager : NSObject

typedef enum {
    sender,
    receiver
} ContactType;

//登录接口
+ (BAURLSessionTask*)loginIn:(NSString*)username password:(NSString*)password successBlock:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取轮播图
+ (BAURLSessionTask*)getAdvertise:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取网点信息
+ (BAURLSessionTask*)getWebsites:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取运单列表
+ (BAURLSessionTask*)getWaybillList:(HLWaybillFiltrateObject*)model pageNumber:(NSInteger)pageNumber pageSize:(NSInteger)pageSize successBlock:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取联系人列表
+ (BAURLSessionTask*)getContactList:(ContactType)type name:(NSString*)name telephone:(NSString*)telephone successBlock:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//开单
+ (BAURLSessionTask*)addWaybill:(HLWaybillDetailObject*)model successBlock:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//订单修改提交
+ (BAURLSessionTask*)submitWaybill:(HLWaybillDetailObject*)model successBlock:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取运单详情
+ (BAURLSessionTask*)getWaybillDetail:(NSString*)waybillId successBlock:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//作废订单
+ (BAURLSessionTask*)cancellationWaybill:(NSString*)waybillId successBlock:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//消息列表
+ (BAURLSessionTask*)getMessageList:(NSInteger)pageNumber successBlock:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//意见反馈
+ (BAURLSessionTask*)feedbackAdd:(NSString*)content successBlock:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//关于我们
+ (BAURLSessionTask*)aboutUs:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取常用包装
+ (BAURLSessionTask*)getPackingList:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取常用送货方式
+ (BAURLSessionTask*)getServiceList:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取常用的收货类型
+ (BAURLSessionTask*)getTransportTypeList:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取常用付款方式
+ (BAURLSessionTask*)getPaymentWayList:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

//获取常用附加跳跃
+ (BAURLSessionTask*)getAdditionalList:(BAResponseSuccessBlock)success failureBlock:(BAResponseFailBlock)failure;

@end
